import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import book from '@/components/book'
import showbook from '@/components/showbook'
import reg from '@/components/reg'
import login from '@/components/login'
import weibo from '@/components/weibo'

Vue.use(Router)


var routes = [
        {
          path:'/',
          name:'test',
          component:test
        },
            {
          path:'/book',
          name:'book',
          component:book
        },
          {
          path:'/showbook',
          name:'showbook',
          component:showbook
        },
         {
          path:'/reg',
          name:'reg',
          component:reg
        },
        {
          path:'/login',
          name:'login',
          component:login
        },
        {
          path:'/weibo',
          name:'weibo',
          component:weibo
        },


]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
